<?php $this->_extends(Helper_Store::layout()); ?>
<?php $this->_block('title'); ?> orders - <?=$store['name']?> <?php $this->_endblock(); ?>
<?php $this->_block('contents'); 
Helper_Util::$MaxImgSize=array('with'=>120,'height'=>160);
?>
<div id="MainWrap">
	<div id="InnerLeftColumn">
		<?php $this->_element('categories'); ?>
		<?php $this->_element('tags'); ?>
	</div>

	<div id="InnerRightColumn">
	
	<div class="Navigation">
		<span><a href="<?=url('default')?>" alt="" title="">Home</a></span>
		<span>&raquo;</span>
		<?php if(isset($navigation)) foreach($navigation as $n):?>
		<span><a href="<?=$n['url']?>" alt="<?=$n['title']?>" title="<?=$n['title']?>"><?=$n['title']?></a></span>
		<span>&raquo;</span> 
		<?php endforeach;?>
		<span class="now"> </span>
	</div>
	<div > 
	
<h1 class="title"><?=_L('my_order')?></h1>
<?php if(isset($orders)&&count($orders)):?>
<form action="" method="post">
<table width="100%" cellpadding="3" cellspacing="0" class="liststyle">
  <col class="span-1"></col>
  <col class="span-5 ColColorGray">
  </col>
  <!--<col></col>-->
  <col class="span-5">
  </col>
  <col class="span-3 ColColorOrange">
  </col>
  <col class="span-5">
  </col>
  <thead>
    <tr>
	  <th></th>
      <th><?=_L('order_sn')?></th>
      <th><?=_L('created')?></th>
      <th><?=_L('order_amount')?></th>
      <th><?=_L('order_status')?></th>
    </tr>
  </thead>
  <tbody>
    <?php foreach($orders as $order):?>
    <tr>
	  <td><input type="checkbox" name="order_id[<?=$order->order_id?>]" value="<?=$order->order_id?>" /> </td>	
      <td style="font-size:17px ; font-weight:bold"><a href="<?=_url('order',array('order_id'=>$order->order_id))?>"><?=$order->order_id?></a></td>
      <td><?=date('Y-m-d H:i:s',$order->created)?></td>
      <td class="textright"><?=Helper_currency::fetch($order->finel_amount,'',$order->currency)?></td>
      <td style="text-align:left"><?=_L('payment_status')?> ：<?=$order['status_payment']?><br />
		  <?=_L('shipment_status')?> : <?=$order['status_shiped']?>
      </td>
    </tr>
	<?php endforeach;?>
  </tbody>
</table>
<div style="padding:10px 10px">
	<select name="aktion">
		<option value=""><?=_L('you_want')?></option>
		<option value="remove"><?=_L('drop')?></option>
	</select>
	&nbsp;&nbsp;&nbsp;
	<input type="submit" value="<?=_L('submit')?>"  />
</div>
<?php else:?>
<p id="cart-none-msg">
<div class="notice">
	<?=_L('no_orders')?>
</div>
<h3><?=_L('you_can')?>:</h3>
<ul class='list'><li><a href='<?=url('default')?>'><?=_L('back_index')?></a></li>
<!--li><a href='javascript:opener=null;window.close();'>Close</a></li></ul-->
</p>
<?php endif;?>
</div>
</div>
<div class="clear"></div>

	
	</div>
	</div>
	</div>
	
	</div></div>
	<div style="clear:both"></div>
<?php $this->_endblock('contents'); ?>
